#include "Gear.h"


void theVideo::ProcessEvents()
{
	const float mouse_factor = 0.32;
	SDL_Event event;
	while(SDL_PollEvent(&event))
	{
		switch(event.type)
		{
		case SDL_QUIT:
			should_stop = true;
			break;
		case SDL_MOUSEMOTION:
			
			break;
		case SDL_MOUSEBUTTONUP:
			if(event.button.button == SDL_BUTTON_LEFT)
			{
				
			}
			break;
		case SDL_KEYDOWN:
			SDLMod mod = SDL_GetModState();
			switch(event.key.keysym.sym)
			{
			case SDLK_ESCAPE:
				should_stop = true;
				break;
			case SDLK_m:
				//sound.PlaySound();
				break;
			case SDLK_UP:

				break;
			case SDLK_DOWN:
				break;
			case SDLK_RIGHT:
				break;
			case SDLK_LEFT:
				break;
			case SDLK_F4:
				break;
			case SDLK_r:
				SDL_GL_SwapBuffers();
				break;
			case SDLK_n:
				
				break;
			case SDLK_0:

				break;
			case SDLK_1:
				
				break;
			case SDLK_2:

				break;
			case SDLK_3:
				
				break;
			case SDLK_4:
				
				break;
			}
			break;
		}
	}

/*	Uint8* kb_state = SDL_GetKeyState(NULL);
	const float speed = 0.085;

	if(kb_state[cfg.keys[MOVE_FORTH]])
	{
		
	}
	if(kb_state[cfg.keys[MOVE_BACK]])
	{
		
	}
	if(kb_state[cfg.keys[MOVE_RIGHT]])
	{
		
	}
	if(kb_state[cfg.keys[MOVE_LEFT]])
	{
		
	}*/
}